import defaultSettings from '@/settings'
import request from '@/utils/request'

export const apiUrlConfig = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/feeManage/FeeWithholdingManage/search`,
}


// 明细查询
export function save(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/FeeWithholdingManage/save`,
    method: 'post',
    data
  })
}

// 明细查询
export function update(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/FeeWithholdingManage/update`,
    method: 'post',
    data
  })
}

// 明细查询
export function del(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/feeManage/FeeWithholdingManage/delete`,
    method: 'post',
    params:{chargeCode:data.feeCode,chargeId:data.chargeId}
  })
}

// 明细详情
export function detail(params) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/feeManage/FeeWithholdingManage/detail`,
      method: 'get',
      params
  })
}
